<template>
	<div id="app">
		<keep-alive>
			<router-view v-if="$route.meta.cache" />
		</keep-alive>
		<router-view v-if="!$route.meta.cache" />
		<Label></Label>
	</div>
</template>

<script>
	import Label from "@/components/Label.vue"
	
	export default{
		name:'app',
		components:{
			Label
		},
		created(){
			//初始化后进行一些常用接口的请求
			this.$store.dispatch('CATE/getCateData')
		}
	}
</script>

<style lang="scss">
	*{
		margin: 0;
		padding: 0;
	}
	#app {
		font-family: Avenir, Helvetica, Arial, sans-serif;
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
	}
</style>
